.class public Les/gf0;
.super Les/cf0;
.source "LineNumberReader.java"


# instance fields
.field private i:I

.field private j:I

.field private k:Z

.field private l:Z


# direct methods
.method public constructor <init>(Ljava/io/Reader;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/cf0;-><init>(Ljava/io/Reader;)V

    const/4 p1, -0x1

    .line 2
    iput p1, p0, Les/gf0;->j:I

    return-void
.end method


# virtual methods
.method public d()I
    .locals 2

    .line 1
    iget-object v0, p0, Ljava/io/Reader;->lock:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    iget v1, p0, Les/gf0;->i:I

    monitor-exit v0

    return v1

    :catchall_0
    move-exception v1

    .line 3
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public mark(I)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Ljava/io/Reader;->lock:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    invoke-super {p0, p1}, Les/cf0;->mark(I)V

    .line 3
    iget p1, p0, Les/gf0;->i:I

    iput p1, p0, Les/gf0;->j:I

    .line 4
    iget-boolean p1, p0, Les/gf0;->k:Z

    iput-boolean p1, p0, Les/gf0;->l:Z

    .line 5
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method public read()I
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Ljava/io/Reader;->lock:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    invoke-super {p0}, Les/cf0;->read()I

    move-result v1

    const/16 v2, 0xa

    if-ne v1, v2, :cond_0

    .line 3
    iget-boolean v3, p0, Les/gf0;->k:Z

    if-eqz v3, :cond_0

    .line 4
    invoke-super {p0}, Les/cf0;->read()I

    move-result v1

    :cond_0
    const/4 v3, 0x0

    .line 5
    iput-boolean v3, p0, Les/gf0;->k:Z

    const/4 v3, 0x1

    if-eq v1, v2, :cond_2

    const/16 v4, 0xd

    if-eq v1, v4, :cond_1

    goto :goto_1

    .line 6
    :cond_1
    iput-boolean v3, p0, Les/gf0;->k:Z

    goto :goto_0

    :cond_2
    move v2, v1

    .line 7
    :goto_0
    iget v1, p0, Les/gf0;->i:I

    add-int/2addr v1, v3

    iput v1, p0, Les/gf0;->i:I

    move v1, v2

    .line 8
    :goto_1
    monitor-exit v0

    return v1

    :catchall_0
    move-exception v1

    .line 9
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public read([CII)I
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 10
    iget-object v0, p0, Ljava/io/Reader;->lock:Ljava/lang/Object;

    monitor-enter v0

    .line 11
    :try_start_0
    invoke-super {p0, p1, p2, p3}, Les/cf0;->read([CII)I

    move-result p3

    const/4 v1, -0x1

    if-ne p3, v1, :cond_0

    .line 12
    monitor-exit v0

    return v1

    :cond_0
    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, p3, :cond_4

    add-int v3, p2, v2

    .line 13
    aget-char v3, p1, v3

    const/16 v4, 0xd

    const/4 v5, 0x1

    if-ne v3, v4, :cond_1

    .line 14
    iget v3, p0, Les/gf0;->i:I

    add-int/2addr v3, v5

    iput v3, p0, Les/gf0;->i:I

    .line 15
    iput-boolean v5, p0, Les/gf0;->k:Z

    goto :goto_1

    :cond_1
    const/16 v4, 0xa

    if-ne v3, v4, :cond_3

    .line 16
    iget-boolean v3, p0, Les/gf0;->k:Z

    if-nez v3, :cond_2

    .line 17
    iget v3, p0, Les/gf0;->i:I

    add-int/2addr v3, v5

    iput v3, p0, Les/gf0;->i:I

    .line 18
    :cond_2
    iput-boolean v1, p0, Les/gf0;->k:Z

    goto :goto_1

    .line 19
    :cond_3
    iput-boolean v1, p0, Les/gf0;->k:Z

    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 20
    :cond_4
    monitor-exit v0

    return p3

    :catchall_0
    move-exception p1

    .line 21
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method public reset()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Ljava/io/Reader;->lock:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    invoke-super {p0}, Les/cf0;->reset()V

    .line 3
    iget v1, p0, Les/gf0;->j:I

    iput v1, p0, Les/gf0;->i:I

    .line 4
    iget-boolean v1, p0, Les/gf0;->l:Z

    iput-boolean v1, p0, Les/gf0;->k:Z

    .line 5
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public skip(J)J
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-ltz v2, :cond_2

    .line 1
    iget-object v0, p0, Ljava/io/Reader;->lock:Ljava/lang/Object;

    monitor-enter v0

    const/4 v1, 0x0

    :goto_0
    int-to-long v2, v1

    cmp-long v4, v2, p1

    if-gez v4, :cond_1

    .line 2
    :try_start_0
    invoke-virtual {p0}, Les/gf0;->read()I

    move-result v4

    const/4 v5, -0x1

    if-ne v4, v5, :cond_0

    .line 3
    monitor-exit v0

    return-wide v2

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 4
    :cond_1
    monitor-exit v0

    return-wide p1

    :catchall_0
    move-exception p1

    .line 5
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    .line 6
    :cond_2
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "charCount < 0: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_2

    :goto_1
    throw v0

    :goto_2
    goto :goto_1
.end method
